import request from '@/utils/request'

// 查询诊断结果列列表
export function listRecord(query) {
  return request({
    url: '/system/diagnosisrecord/list',
    method: 'get',
    params: query
  })
}

// 查询诊断结果列详细
export function getRecord(companyId) {
  return request({
    url: '/system/diagnosisrecord/' + companyId,
    method: 'get'
  })
}

// 新增诊断结果列
export function addRecord(data) {
  return request({
    url: '/system/diagnosisrecord',
    method: 'post',
    data: data
  })
}

// 修改诊断结果列
export function updateRecord(data) {
  return request({
    url: '/system/diagnosisrecord',
    method: 'put',
    data: data
  })
}

// 删除诊断结果列
export function delRecord(companyId) {
  return request({
    url: '/system/diagnosisrecord/' + companyId,
    method: 'delete'
  })
}
